import request from '@/utils/request'

// 查询绩效考核记录列表
export function listPercord(query) {
  return request({
    url: '/oa/percord/list',
    method: 'get',
    params: query
  })
}

// 查询绩效考核记录详细
export function getPercord(eecordId) {
  return request({
    url: '/oa/percord/' + eecordId,
    method: 'get'
  })
}

// 新增绩效考核记录
export function addPercord(data) {
  return request({
    url: '/oa/percord',
    method: 'post',
    data: data
  })
}

// 修改绩效考核记录
export function updatePercord(data) {
  return request({
    url: '/oa/percord',
    method: 'put',
    data: data
  })
}

// 删除绩效考核记录
export function delPercord(eecordId) {
  return request({
    url: '/oa/percord/' + eecordId,
    method: 'delete'
  })
}
